package day319.demo1;

public class GrandSon extends Son {

    @Override
    public void toString(String name,int age) {
        this.setAge(age);
        this.setName(name);
        System.out.println("孙子的姓名为:"+getName()+"，年龄为:"+getAge());
    }
}
